fresh_fruit = {
    "apple": 10,
    "banana": 8,
    "lemon": 5,
}


def make_lemonade(count):
    print(f"制作了{count * 2}杯柠檬汁")
    del fresh_fruit["lemon"]


def out_of_stock():
    print("库存不够了")


if count := fresh_fruit.get("lemon", 0):
    make_lemonade(count)
else:
    out_of_stock()
